package com.zhai.boot.annotation;


import java.lang.annotation.*;

/**
 * 去除对象中字符串属性的特殊字符
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface TrimField {

    /**
     * 去除的字符串正则表达式
     */
    String regex() default "";

    String SPACE = "\\s+";

    String SINGLE_QUOTES = "[']";
}